package com.pharmacy.pharmacy.domain;

import java.util.Date;

/**
 * 【】对象 address
 * 
 * @author 
 * @date 2025-05-08
 */
public class Address
{

    /** 主键，自增ID */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 收件人姓名 */
    private String recipientName;

    /** 收件人电话 */
    private String phone;

    /** 详细地址 */
    private String addressDetail;

    /** 是否默认地址（0否，1是） */
    private Long isDefault;

    private Date createTime;

    public Address() {
    }

    public Address(Long id, Long userId, String recipientName, String phone, String addressDetail, Long isDefault, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.recipientName = recipientName;
        this.phone = phone;
        this.addressDetail = addressDetail;
        this.isDefault = isDefault;
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return userId
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return recipientName
     */
    public String getRecipientName() {
        return recipientName;
    }

    /**
     * 设置
     * @param recipientName
     */
    public void setRecipientName(String recipientName) {
        this.recipientName = recipientName;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return addressDetail
     */
    public String getAddressDetail() {
        return addressDetail;
    }

    /**
     * 设置
     * @param addressDetail
     */
    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    /**
     * 获取
     * @return isDefault
     */
    public Long getIsDefault() {
        return isDefault;
    }

    /**
     * 设置
     * @param isDefault
     */
    public void setIsDefault(Long isDefault) {
        this.isDefault = isDefault;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String toString() {
        return "Address{id = " + id + ", userId = " + userId + ", recipientName = " + recipientName + ", phone = " + phone + ", addressDetail = " + addressDetail + ", isDefault = " + isDefault + ", createTime = " + createTime + "}";
    }
}
